package com.forum.mapper;

import com.forum.entity.Images;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ImagesMapper {
    void insertBatch(List<Images> imageList);

    @Select("select * from images where thread_id= #{threadId}")
    List<Images> queryByThreadId(Long threadId);

    @Select("select url from images where thread_id= #{threadId} limit 1")
    String queryByIdImage(Long threadId);
}
